<table>
	<tr>
		<th colspan="3" align="left"> <%= pluralize(@user.friends.count, "Amigos") %> </th>
	</tr>
	<% @user.friends.each do |friend| %>
	<tr>
		<td width="50"> <%= link_to thumbnail_tag(friend), profile_for(friend) %> </td>
		<td><%= link_to friend.name, profile_for(friend) %></td>
		<td> <% unless hide_edit_links? %>
		<%= link_to "Eliminar",
		{ :controller => "friendship", :action => "delete",
		:id => friend.screen_name },
		:confirm =>
		"Desea eliminar la solcitud de amistad con #{friend.name}?" %>
		<% end %> </td>
	</tr>
	<% end %>
	<% unless @user.requested_friends.empty? or hide_edit_links? %>
	<tr>
		<th colspan="3" align="left"> <%= pluralize(@user.requested_friends.count, "requested friend") %> </th>
	</tr>
	<% @user.requested_friends.each do |requester| %>
	<tr>
		<td><%= link_to thumbnail_tag(requester), profile_for(requester) %></td>
		<td><%= link_to requester.name, profile_for(requester) %></td>
		<td> <%= link_to "Aceptar",
		:controller => "friendship", :action => "accept",
		:id => requester.screen_name %> /
		<%= link_to "Declinar",
		{ :controller => "friendship", :action => "decline",
		:id => requester.screen_name },
		:confirm =>
		"Realmente desea declinar solicitud de amistad #{requester.name}?" %> </td>
	</tr>
	<% end %>
	<% end %>
	<% unless @user.pending_friends.empty? or hide_edit_links? %>
	<tr>
		<th colspan="3" align="left"> <%= pluralize(@user.pending_friends.count, "Solicitud") %> </th>
	</tr>
	<% @user.pending_friends.each do |pending_friend| %>
	<tr>
		<td><%= link_to thumbnail_tag(pending_friend),
		profile_for(pending_friend) %></td>
		<td><%= link_to pending_friend.name,
		profile_for(pending_friend) %></td>
		<td><%= link_to "Cancelar solicitud",
		{ :controller => "friendship", :action => "cancel",
		:id => pending_friend.screen_name },
		:confirm =>
		"Desea cancelar la solicitud de amistad?" %></td>
	</tr>
	<% end %>
	<% end %>
</table>
